package IC.lir.decl;
import IC.lir.operands.Label;
import IC.lir.Visitor;

public class LabelDecl extends Decl {
	private final Label label; 
	
	/**
	 * @param label the labe operand
	 */
	public LabelDecl(final Label label) {
		this.label = label;
	}

	/**
	 * @param label the labe operand
	 */
	public LabelDecl(final String label) {
		this.label = new Label(label);
	}

	/**
	 * @return the label
	 */
	public Label getLabel() {
		return label;
	}

	@Override
	public <D, U> U accept(Visitor<D, U> v, D d) {
		return v.visit(this, d);
	}
}
